package com.shd.day01;

/**
 * @author S5343
 * @date 2018年7月20日下午10:39:29
 */
public class Apple {
	/**
	 * 颜色
	 */
	private String color;
	/**
	 * 重量
	 */
	private long weight;

	/**
	 * @param 颜色
	 * @param 重量
	 */
	public Apple(String color, long weight) {
		super();
		this.color = color;
		this.weight = weight;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public long getWeight() {
		return weight;
	}

	public void setWeight(long weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "Apple [color=" + color + ", weight=" + weight + "]";
	}
}
